package com.example.databindingdemo;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.Toast;

/**
 * @author: tuyrt7 on 2020/9/8.
 */
public class EventHandleListener {
    private Context mContext;

    public EventHandleListener(Context context) {
        mContext = context;
    }

    public void onButtonClicked(View view) {
        Toast.makeText(mContext, "I am clicked!", Toast.LENGTH_SHORT).show();

    }
}
